﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@((string)ViewBag.Title ?? "RedSand Content Manager System")</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- mws theme -->
    <link rel="stylesheet" type="text/css" href="/content/backend/mws-theme/css/style.css"
        media="screen" />
    <!-- common javascript -->
    <script type="text/javascript" src="/scripts/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="/scripts/jquery-ui-1.8.17.min.js"></script>
    <script type="text/javascript" src="/scripts/jquery.cookie.js"></script>
    <script src="/scripts/jquery.form.js" type="text/javascript"></script>
    <!-- mvc javascript -->
    <script src="/scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="/scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <script src="/scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
    <!-- theme javascript -->
    <script type="text/javascript" src="/content/backend/mws-theme/js/theme.js"></script>
    <!-- rs script common -->
    <script src="/scripts/rs.ajaxupload.js" type="text/javascript"></script>
    <script src="/scripts/rs.admin.common.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(window).load(function () {
            showMessage('@Html.Action("GetMessage", "Base")');
        });
    </script>
</head>
<body>
    <div id="loading-panel">@Html.Translate("InProgress")</div>
    <div id="header" class="clearfix">
        <div id="logo">
            <a href="/admin" title="RedSand Content Manager System">
                <img src="/Content/Backend/mws-theme/images/logo-backend-redsand.png" alt="RedSand Content Manager System"
                    style="height: 50px; margin-top: 4px" />
            </a>
        </div>
        @if (User.Identity.IsAuthenticated)
        {
            <div id="user-info" class="inset">
                <div>
                    Hello, 
                    <a href="/account/profile">@User.Identity.Name</a>
                </div>
                <div>
                    <a href="/account/logout">Logout</a>
                </div>
            </div>
        }
        <div class="flag clearfix">
            <a href="/vi/admin" class="flag-vi" title="vi-VN">vi/admin</a>
             <a href="/en/admin" class="flag-en" title="vi-VN">en/admin</a>
        </div>
    </div>
    <div id="wrapper">
        <div id="sidebar-bg">
        </div>
        <div id="sidebar">
            @Html.Action("Menu", "Action")
        </div>
        <div id="splitbar">
        </div>
        <div id="container" class="clearfix">
            <div class="container">
                @RenderBody()
            </div>
            <div id="footer">
                Công ty cổ phần phát triển công nghệ RedSand - &copy; redsand.vn 2012
            </div>
        </div>
    </div>
    <script type="text/javascript">
        jQuery.data(document.body, 'Message', {
            SystemError: '@Html.Translate("SystemError", "Message")',
            NoRecordsAreSelected: '@Html.Translate("NoRecordsAreSelected", "Message")',
            FileFormatWrong: '@Html.Translate("FileFormatWrong", "Message")',
            FileSizeTooLarge: '@Html.Translate("FileSizeTooLarge", "Message")'
        });
        jQuery.data(document.body, 'StringFormat', {
            ShortDate: '@Html.Translate("ShortDate", "StringFormat")'
        });
    
    </script>
</body>
</html>
